package com.github.zyt.webuploader;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * web容器中进行部署
 * <p>解决springbootd达成war包，部署tomcat后访问404问题</p>
 * @author john
 *
 */
public class WebUploaderServletInitializer extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(WebUploaderApplication.class);
	}

}
